package D12_2;
import java.lang.Math;
abstract class SHAPE {
    private String name;
    public SHAPE(String name){
        this.name=name;
    }
    public String Getname(){
        return name;
    }
    public abstract void  draw();
}
class  circle extends SHAPE {
   public circle(){
       super("圆形");
   }
    @Override
    public void draw() {
        System.out.println("画了一个圆....");
    }
}
class  rectangle extends SHAPE{
   public rectangle(){
       super("长方形");
   }

    @Override
    public void draw() {
        System.out.println("画了一个长方形....");
    }
}
